import { lazy } from 'react';

const DataManage = lazy( () => import( 'src/pages/DataManage/DataConnect/index.tsx' ) );
const DataArrange = lazy( () => import( 'src/pages/DataManage/DataArrange/index.tsx' ) );
const DataDispatch = lazy( () => import( 'src/pages/DataManage/DataDispatch/index.tsx' ) );
const DataPreview = lazy( () => import( 'src/pages/DataManage/DataPreview/index.tsx' ) );
const ExecutionRecord = lazy( () => import( 'src/pages/DataManage/ExecutionRecord/index.tsx' ) );
const DataSet = lazy( () => import( 'src/pages/DataManage/DataSet/index.tsx' ) );
const DataSetView = lazy( () => import( 'src/pages/DataManage/DataSetView/index.tsx' ) );

export default [
	{
		title: '数据连接',
		path: '/dataManage/dataConnect',
		key: 'dataConnect',
		exact: true,
		component: DataManage
	},
	{
		title: '新建模型',
		path: '/dataManage/dataArrange',
		key: 'dataArrange',
		exact: true,
		component: DataArrange
	},
	{
		title: '数据模型',
		path: '/dataManage/dataDispatch',
		key: 'dataDispatch',
		exact: true,
		component: DataDispatch
	},
	{
		title: '数据预览',
		path: '/dataManage/dataPreview',
		key: 'DataPreview',
		exact: true,
		component: DataPreview
	},
	{
		title: '执行记录',
		path: '/dataManage/dataRecord',
		key: 'ExecutionRecord',
		exact: true,
		component: ExecutionRecord
	},
	{
		title: '数据集',
		path: '/dataManage/dataSet',
		key: 'DataSet',
		exact: true,
		component: DataSet
	},
	{
		title: '数据预览',
		path: '/dataManage/dataSetView/:id',
		key: 'DataSetView',
		exact: true,
		component: DataSetView
	}
];